/**
 *	知识管理路由配置
 *  分模块管理路由
 **/
export default [
  {
    path: "/manage",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/manage/mapManagement",
    meta: {
      // title: '知识建模',
      title: "知识管理",
      icon: "icon-wenjianjia",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "mapManagement",
        component: () =>
          import("@/views/server/knowledge-management/mapManagement"),
        hidden: false,
        name: "MapManagement",
        meta: {
          title: "图谱管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "viewManagement",
        component: () => import("@/views/server/knowledge-management/visual"),
        hidden: false,
        name: "Visual",
        meta: {
          title: "知识可视化",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "entityManagement",
        component: () =>
          import(
            "@/views/server/knowledge-management/entityManagement/entityManagement"
          ),
        name: "EntityManagement",
        hidden: false,
        meta: {
          title: "实体管理",
          roles: ["superAdmin", "commonAdmin"],
          // activeMenu: "/ontologyModel/ontologyManagement",
        },
      },
      {
        path: "entityManagement/view",
        component: () =>
          import(
            "@/views/server/knowledge-management/entityManagement/viewEntity"
          ),
        name: "viewEntity",
        hidden: true,
        meta: {
          title: "实体管理",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: '/manage/entityManagement'
        },
      },
      {
        path: "entityManagement/edit",
        component: () =>
          import(
            "@/views/server/knowledge-management/entityManagement/editEntity"
          ),
        name: "editEntity",
        hidden: true,
        meta: {
          title: "实体管理",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: '/manage/entityManagement'
        },
      },
      {
        path: "relationManagement",
        component: () =>
          import("@/views/server/knowledge-management/relationManagement/relationManagement"),
        name: "RelationManagement",
        hidden: false,
        meta: {
          title: "关系管理",
          roles: ["superAdmin", "commonAdmin"],
          // activeMenu: "/ontologyModel/ontologyManagement",
        },
      },
      {
        path: "relationManagement/relation",
        component: () => import("@/views/server/knowledge-management/relation"),
        name: "Relation",
        hidden: true,
        meta: {
          title: "边属性",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/manage/relationManagement",
        },
      },
    ],
  },
];
